This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
RE: @MailSend giving inconsistent results ~Umberto Nongeroson 3.Dec.03 11:42 PM a Web browser Notes Client 6.0.2 CF2All Platforms
You're saying that this agent sends an email when you expect @MailSend to not execute because of the @If. So you are not really having a problem with @MailSend, which is functioning as expected, but with the @If which is invoking @MailSend when in your opinion it shouldn't.
For testing purposes, I suggest that you change the @MailSend command to something that will not cause people to receive unwanted emails; e.g. you could put an @Prompt (or @Statusbar) there instead; in fact, the @Prompt could display the values of the three variables you are testing in your @If, so that you could see for certain whether the document in question really should have had an email generated for it.
Bear in mind also that if you have a document selected with a checkmark, and a different document highlighted, the agent runs on the checked documents, not the highlighted document.